﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_errorLocation", DisableSyncStructure = true)]
	public partial class TErrorLocation {

		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// 录入时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		[JsonProperty]
		public int? FaultTime { get; set; }

		/// <summary>
		/// 纬度
		/// </summary>
		[JsonProperty]
		public int? FiftyFaultPoint { get; set; }

		[JsonProperty]
		public int? FiftyFaultValue { get; set; }

		/// <summary>
		/// 故障距离
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string FiftySingleCycleValue { get; set; }

		[JsonProperty]
		public int? FiftyWaveDirection { get; set; }

		[JsonProperty]
		public int? FiftyWaveValue { get; set; }

		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

		/// <summary>
		/// 采集时间
		/// </summary>
		[JsonProperty]
		public DateTime? Time { get; set; }

		[JsonProperty]
		public int? TravelWaveDirection { get; set; }

		[JsonProperty]
		public int? TravelWaveValue { get; set; }

		/// <summary>
		/// 经度
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string WaveEffecData { get; set; }

		[JsonProperty]
		public int? WaveMaxPoint { get; set; }

		[JsonProperty]
		public int? WaveMaxValue { get; set; }

	}

}
